package types // Package types improt "xemo.top/docker/docker/api/types"
// AuthConfig 包含用于连接到注册表的授权信息。
// AuthConfig contains authorization information for connecting to a Registry.
type AuthConfig struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Auth     string `json:"auth,omitempty"`

	// Email 是与用户名关联的可选值。此字段已弃用，将在更高版本的docker中删除。
	// Email is an optional value associated with the username.This field is deprecated and will be removed in a later version of docker.
	Email         string `json:"email,omitempty"`
	ServerAddress string `json:"serveraddress,omitempty"`
	// IdentityToken 用于对用户进行身份验证并获取注册表的访问令牌。
	// IdentityToken is used to authenticate the user and get an access token for the registry.
	IdentityToken string `json:"identitytoken,omitempty"`
	// RegistryToken 是要发送到注册表的承载令牌。
	// RegistryToken is a bearer token to be sent to a registry.
}
